package net.apexes.demo.codegen.dslite.entity;


/**
 * Goods. the database table "GOODS"
 */
public class Goods extends net.apexes.demo.codegen.entity.base.EntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * GOODS_BASE_ID
     */
    private String goodsBaseId;

    /**
     * GOODS_TYPE
     */
    private net.apexes.demo.codegen.entity.enums.GoodsType goodsType;

    /**
     * GOODS_CATEGORY
     */
    private net.apexes.demo.codegen.entity.enums.GoodsCategory goodsCategory;

    /**
     * BAR_CODE
     */
    private String barCode;

    /**
     * SKU_CODE
     */
    private String skuCode;

    /**
     * PRICE
     */
    private java.math.BigDecimal price;

    /**
     * SEQ_ORDER
     */
    private Integer seqOrder;

    /**
     * PHOTO
     */
    private byte[] photo;

    /**
     * TEMPLATE_ID
     */
    private String templateId;

    public String getGoodsBaseId() {
        return goodsBaseId;
    }

    public void setGoodsBaseId(String goodsBaseId) {
        this.goodsBaseId = goodsBaseId;
    }

    public net.apexes.demo.codegen.entity.enums.GoodsType getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(net.apexes.demo.codegen.entity.enums.GoodsType goodsType) {
        this.goodsType = goodsType;
    }

    public net.apexes.demo.codegen.entity.enums.GoodsCategory getGoodsCategory() {
        return goodsCategory;
    }

    public void setGoodsCategory(net.apexes.demo.codegen.entity.enums.GoodsCategory goodsCategory) {
        this.goodsCategory = goodsCategory;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public java.math.BigDecimal getPrice() {
        return price;
    }

    public void setPrice(java.math.BigDecimal price) {
        this.price = price;
    }

    public Integer getSeqOrder() {
        return seqOrder;
    }

    public void setSeqOrder(Integer seqOrder) {
        this.seqOrder = seqOrder;
    }

    public byte[] getPhoto() {
        return photo;
    }

    public void setPhoto(byte[] photo) {
        this.photo = photo;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public void cloneFrom(Goods from) {
        this.goodsBaseId = from.goodsBaseId;
        this.goodsType = from.goodsType;
        this.goodsCategory = from.goodsCategory;
        this.barCode = from.barCode;
        this.skuCode = from.skuCode;
        this.price = from.price;
        this.seqOrder = from.seqOrder;
        this.photo = from.photo;
        this.templateId = from.templateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",goodsBaseId=").append(goodsBaseId);
        sb.append(",goodsType=").append(goodsType);
        sb.append(",goodsCategory=").append(goodsCategory);
        sb.append(",barCode=").append(barCode);
        sb.append(",skuCode=").append(skuCode);
        sb.append(",price=").append(price);
        sb.append(",seqOrder=").append(seqOrder);
        sb.append(",templateId=").append(templateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

